<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="keywords" content="" />
		<meta http-equiv="description" content="" />
		<title>コントロールパネル</title>

		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />
		<script src="assets/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		
		<script type="text/javascript">
		$(function() {

			// メッセージのフェード
			$('.message').fadeIn("slow");

			// 戻るボタン押下
			$('#btn_back').click(function(){
				document.fm.mode.value = 'back';
				document.fm.submit();
			});
		});
		</script>
		<script type="text/javascript">
			function openYZ(){
				var mydiv = document.getElementById('mydiv');
				mydiv.style.display = 'block';
				window.location.href = 'price_book.php?mode=open';
			}
		</script>	
				
	</head>
	<body id="priceResolution">

		<div id="container">
			<div class="wrapper">
				<div id="printContent">
					<div id="pheader">
					    <div id="pheaderLeft">
					    	<h1 id="printPageTitle">単価稟議書</h1>
					    	<p class="printName">得意先名:{{$consumer.company_name}}<br />支店名：{{$consumer.branch_name}}</p>
					    	
					    	<table class="headerTable">
					    		<tbody>
					    			<th></th><td></td>
					    			<tr><th align="right">件名：</th><td>{{$make_price_option[$forms.pro_name]}}</td></tr>
					    			<tr><th align="right">納入場所：</th><td>{{$forms.save_address}}</td></tr>
					    			<tr><th align="right">納入期日：</th><td>{{$forms.save_date}}</td></tr>
					    			<tr><th align="right">適用期間：</th><td>{{$forms.period_remark}}</td></tr>
					    			<tr><th align="right">支払条件：</th><td>{{if $forms.payment_term==''}}末締翌末現金支払{{/if}}{{$forms.payment_term}}</td></tr>
					    			<tr><th align="right">見積有効期限：</th><td>{{$forms.dateestimated}}</td></tr>
					    			<tr><th align="right">送料：</th><td>{{$forms.shipping}}</td></tr>
					    		</tbody>
					    	</table>
					    </div>
			    <div id="pheaderRight">
			    	<p class="alignRight mb30">年月日：{{$forms.m_date}}<br />
			    		作成者：{{$staff_name}}<br />
			    		見積番号：{{$price_no}}
			    	</p>
			    	<table class="stampTable">
				    	<thead>
				    		<tr>
								<td width="50%">承認</td>
				    			<td width="50%">発行者</td>
				    		</tr>
				    	</thead>
			    		<tbody>
			    			<tr align="center">
			    				<td width="50%">
			    				
			    				</td>
			    				<td width="50%">
			    				{{if $forms.examiner>0}}
			    				<img src="assets/images/staffadmin/{{$forms.examiner}}.png"   onerror="this.src='assets/images/staffadmin/nostaff.png';this.onerror=null;"></img>
			    				{{/if}}
			    										</td>
			    			</tr>
			    		</tbody>
			    	</table>
			    </div>
			    
			   
			</div>	
			    
				
			   
			   
			  	<form name="fm" action="" method="post">
			  			<table class="printTable">	
			  				<tr align="center">
			  					<th>名称</th>
			  					<th>仕様</th>								
			  					<th>数量</th>
			  					<th>単位</th>	
			  					<th>単価</th>
			  					<th>金額</th>
			  					<th>掛け率</th>
			  					<th>参考価格</th>
			  					<th>原価</th>
			  					<th>利益率</th>
			  							
			  				</tr>
			  				{{ foreach from=$detail key=k item=v }}
			  				<tr align="center">
			  					<td class="itemNameHalf" align="left">{{$v.shop_name}}</td>
			  					<td class="itemNameHalf">{{$v.style}}</td>
			  					<td>{{$v.quantity}}</td>
			  					<td>{{$v.s_unit}}</td>
			  					<td>￥{{$v.cmoney}}</td>	
			  					<td>￥{{$v.money1}}</td>	
			  					<td>{{$v.discount}}</td>	
			  					<td>￥{{$v.refer_price}}</td>								
			  					<td>￥{{$v.cost_price}}</td>								
			  					<td>{{$v.profit}}</td>					
			  				</tr>								
			  				{{ /foreach }}	
			  				
			  				{{section name=foo start=$num loop=21 step=1 }}
			  				<tr align="center">
			  					<td>&nbsp;</td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>								
			  					<td></td>	
			  					<td></td>
			  					<td></td>
			  					<td></td>							
			  				</tr>
			  				{{/section}}
			  			</table>
			  			<div class="noteArea">
			  				<dl>
			  					<dt>[特価理由]</dt>
			  					<dd>{{$forms.special_reason}}</dd>
			  				</dl>
			  				<dl>
			  					<dt>[備考]</dt>
			  					<dd>{{$forms.remark}}</dd>
			  				</dl>
			  			</div><!--/.noteArea-->
			  		</form>	
			  </div>
			  <!-- <div id="mydiv" style="display: none;position: static;">$imag</div> -->
			  	
		</div></div>
		
	</body>

</html>